package com.yonyou.cyxdms.basedata.service.dto;

import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;

import java.io.Serializable;

/**
 * <p>
 * 品牌表
 * </p>
 *
 * @author guorp1
 * @since 2018-11-12
 */

public class CarbrandDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * APP_ID
     */
    private String appId;
    /**
     * 来源id
     */
    private Long sourceId;
    /**
     * 品牌名称
     */
    private String name;
    /**
     * 化名
     */
    private String aliasName;
    /**
     * 别名
     */
    private String ename;
    /**
     * seo 名称
     */
    private String seoName;
    /**
     * 首字母
     */
    private String initial;
    /**
     * url超文本标记
     */
    private String shareUrl;
    /**
     * countryid
     */
    private Integer countryId;
    /**
     * mf名称
     */
    private String mfName;
    /**
     * mfId
     */
    private Integer mfId;
    /**
     * 父id
     */
    private Long masterId;
    /**
     * 电话
     */
    private String phone;
    /**
     * 网站
     */
    private String webSite;
    /**
     * 说明
     */
    private String introduction;
    /**
     * logo
     */
    private String logo;
    /**
     * 图片
     */
    private String picture;
    /**
     * 售卖状态
     */
    private Integer saleState;
    /**
     * 是否删除
     */
    private Integer isDelete;
    /**
     * 重量
     */
    private Integer weight;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 品牌代码
     */
    private String brandCode;
    /**
     * 是否有效
     */
    private Integer isValid;
    /**
     * 是否进口
     */
    private Integer isImport;
    /**
     * 数据来源
     */
    private Integer sourceChannel;

    public CarbrandDTO() {
        super();
    }


    /**
     * get 方法
     *
     * @return
     */

    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getAppId() {
        return appId;
    }


    public void setAppId(String appId) {
        this.appId = appId;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Long getSourceId() {
        return sourceId;
    }


    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getAliasName() {
        return aliasName;
    }


    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getEname() {
        return ename;
    }


    public void setEname(String ename) {
        this.ename = ename;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getSeoName() {
        return seoName;
    }


    public void setSeoName(String seoName) {
        this.seoName = seoName;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getInitial() {
        return initial;
    }


    public void setInitial(String initial) {
        this.initial = initial;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getShareUrl() {
        return shareUrl;
    }


    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getCountryId() {
        return countryId;
    }


    public void setCountryId(Integer countryId) {
        this.countryId = countryId;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getMfName() {
        return mfName;
    }


    public void setMfName(String mfName) {
        this.mfName = mfName;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getMfId() {
        return mfId;
    }


    public void setMfId(Integer mfId) {
        this.mfId = mfId;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Long getMasterId() {
        return masterId;
    }


    public void setMasterId(Long masterId) {
        this.masterId = masterId;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getPhone() {
        return phone;
    }


    public void setPhone(String phone) {
        this.phone = phone;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getWebSite() {
        return webSite;
    }


    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getIntroduction() {
        return introduction;
    }


    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getLogo() {
        return logo;
    }


    public void setLogo(String logo) {
        this.logo = logo;
    }


    /**
     * get 方法
     *
     * @return
     */
    public String getPicture() {
        return picture;
    }


    public void setPicture(String picture) {
        this.picture = picture;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getSaleState() {
        return saleState;
    }


    public void setSaleState(Integer saleState) {
        this.saleState = saleState;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getIsDelete() {
        return isDelete;
    }


    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getWeight() {
        return weight;
    }


    public void setWeight(Integer weight) {
        this.weight = weight;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Long getBrandId() {
        return brandId;
    }


    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    /**
     * get 方法
     *
     * @return
     */

    public String getBrandCode() {
        return brandCode;
    }


    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    /**
     * get 方法
     *
     * @return
     */

    public Integer getIsValid() {
        return isValid;
    }


    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getIsImport() {
        return isImport;
    }


    public void setIsImport(Integer isImport) {
        this.isImport = isImport;
    }


    /**
     * get 方法
     *
     * @return
     */
    public Integer getSourceChannel() {
        return sourceChannel;
    }


    public void setSourceChannel(Integer sourceChannel) {
        this.sourceChannel = sourceChannel;
    }


    /**
     * 重写tostring方法
     *
     * @return
     */
    @Override
    public String toString() {
        return "CarbrandDTO{" +
                "id=" + id +
                ", appId=" + appId +
                ", sourceId=" + sourceId +
                ", name=" + name +
                ", aliasName=" + aliasName +
                ", ename=" + ename +
                ", seoName=" + seoName +
                ", initial=" + initial +
                ", shareUrl=" + shareUrl +
                ", countryId=" + countryId +
                ", mfName=" + mfName +
                ", mfId=" + mfId +
                ", masterId=" + masterId +
                ", phone=" + phone +
                ", webSite=" + webSite +
                ", introduction=" + introduction +
                ", logo=" + logo +
                ", picture=" + picture +
                ", saleState=" + saleState +
                ", isDelete=" + isDelete +
                ", weight=" + weight +
                ", brandId=" + brandId +
                ", brandCode=" + brandCode +
                ", isValid=" + isValid +
                ", isImport=" + isImport +
                ", sourceChannel=" + sourceChannel +
                "}";
    }

    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     *
     * @param poClass dto 需要转换的dto
     * @author guorp1
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     *
     * @param po 需要转换的对象
     * @author guorp1
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "id");
    }

}
